﻿#region 命名空间

using System;
using System.Data;
using System.Text;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using System.Web.UI;
using WinnerCMS.Data;
using WinnerCMS.Model;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.BLL
{
    public class HotKeyWordsManage
    {
        private static readonly HotKeyWordsDal MyDAL = new HotKeyWordsDal();

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="ModelId"></param>
        /// <param name="KeyWord"></param>
        /// <param name="Result"></param>
        public void Add(byte ModelId, string KeyWord, int Result)
        {
            if (string.IsNullOrEmpty(KeyWord)) return;
            if (Result == 0) return;


            MyDAL.Add(ModelId, KeyWord, Result);
        }

        /// <summary>
        /// 取得热门关键字排行榜
        /// </summary>
        /// <param name="TopNum"></param>
        /// <returns></returns>
        public IList<HotKeyWord> GetList(int TopNum)
        {
            return MyDAL.GetList(TopNum);
        }
    }
}